﻿<riaControlsBase:UserControlBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:riaControlsBase="clr-namespace:SBPweb.RIA.Client.Controls.Base;assembly=SBPweb.RIA.Client.Controls"
    xmlns:libraryControls="clr-namespace:SBPweb.PlAzureNet.Client.Library.Controls;assembly=SBPweb.PlAzureNet.Client.Library.Controls.SL"
	x:Class="SBPweb.PlAzureNet.Client.Library.Controls.MainControl"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="600">
    <riaControlsBase:UserControlBase.Resources>
		<Style x:Key="rectShadowedBar" TargetType="Rectangle">
			<Setter Property="Fill" Value="#FFFCFCFC"/>
		    <Setter Property="Effect">
				<Setter.Value>
	                <DropShadowEffect Direction="0" BlurRadius="7" ShadowDepth="0" Opacity="0.3" />
				</Setter.Value>
			</Setter>
		</Style>
        <Style x:Key="tbkButtonCaption" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFFFFFFF" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="9.5" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
		<Style x:Key="tbkHeaderCaption" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFFFFFFF" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="18" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Margin" Value="-10,5,-10,125" />
		    <Setter Property="Effect">
				<Setter.Value>
	                <DropShadowEffect Direction="-90" BlurRadius="7" ShadowDepth="1" Opacity="1" />
				</Setter.Value>
			</Setter>
        </Style>
    </riaControlsBase:UserControlBase.Resources>

    <Grid x:Name="LayoutRoot" Background="#FFFFFFFF" HorizontalAlignment="Stretch" Margin="-8,-8,-8,8">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="160" />
            <ColumnDefinition />
            <ColumnDefinition Width="160" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Rectangle x:Name="grdBack" Grid.ColumnSpan="3" Grid.Row="1" Fill="#CC7CC5FA" Margin="69,-86,70,0" Cursor="Hand" />

        <ContentControl x:Name="cContent" Grid.Column="1" Grid.Row="1" Margin="-66,-10,-62,0" HorizontalContentAlignment="Stretch">
            <!--<libraryControls:ActionsContent />-->
        </ContentControl>

        <Rectangle Grid.Column="0" Grid.Row="1" Margin="19,-10,70,0" Style="{StaticResource rectShadowedBar}" />
        <Rectangle Grid.Column="1" Grid.Row="0" Margin="-13,47,-13,65.5" Style="{StaticResource rectShadowedBar}" />
        <Rectangle Grid.Column="2" Grid.Row="1" Margin="66.5,-10,17,0" Style="{StaticResource rectShadowedBar}" />

        <Image x:Name="imgLogo" Grid.Column="0" Grid.Row="0" Width="160" Height="180" Source="/SBPweb.PlAzureNet.Client.Library.Controls.SL;component/Resources/PlAzureNet_Logo_160x180.png" Cursor="Hand" MouseLeftButtonUp="imgLogo_MouseLeftButtonUp" />

        <TextBlock x:Name="tbkTitle" Grid.Column="0" Grid.Row="0" Style="{StaticResource tbkHeaderCaption}" Text="plazure.net" />
        
        <Grid Grid.Column="2" Grid.Row="0" Margin="18,47,17,15">
            <ContentPresenter x:Name="cpSocialContent" />
        </Grid>
        
        <StackPanel Grid.Column="1" Height="46" Margin="-16,118,-16,0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">
            <libraryControls:ToolBarButton Width="46" ButtonFace="#880E92F6" ButtonFaceHover="#FF0E92F6" ButtonFacePressed="#CC0E92F6" MouseClick="ToolBarButton_MouseClick" ContentTypeName="ActionsContent">
                <libraryControls:ToolBarButton.ButtonContent>
                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="actions" />
                </libraryControls:ToolBarButton.ButtonContent>
            </libraryControls:ToolBarButton>
            <libraryControls:ToolBarButton Width="46" ButtonFace="#88F761C4" ButtonFaceHover="#FFF761C4" ButtonFacePressed="#CCF761C4" MouseClick="ToolBarButton_MouseClick" ContentTypeName="StatsContent">
                <libraryControls:ToolBarButton.ButtonContent>
                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="stats" />
                </libraryControls:ToolBarButton.ButtonContent>
            </libraryControls:ToolBarButton>
            <libraryControls:ToolBarButton Width="46" ButtonFace="#88FC8030" ButtonFaceHover="#FFFC8030" ButtonFacePressed="#CCFC8030" MouseClick="ToolBarButton_MouseClick" ContentTypeName="VotesContent">
                <libraryControls:ToolBarButton.ButtonContent>
                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="votes" />
                </libraryControls:ToolBarButton.ButtonContent>
            </libraryControls:ToolBarButton>
            <libraryControls:ToolBarButton Width="46" ButtonFace="#88FFCC00" ButtonFaceHover="#FFFFCC00" ButtonFacePressed="#CCFFCC00" MouseClick="ToolBarButton_MouseClick" ContentTypeName="MediaContent">
                <libraryControls:ToolBarButton.ButtonContent>
                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="media" />
                </libraryControls:ToolBarButton.ButtonContent>
            </libraryControls:ToolBarButton>
            <libraryControls:ToolBarButton Width="46" ButtonFace="#8883CA10" ButtonFaceHover="#FF83CA10" ButtonFacePressed="#CC83CA10" MouseClick="ToolBarButton_MouseClick" ContentTypeName="ProfileContent">
                <libraryControls:ToolBarButton.ButtonContent>
                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="profile" />
                </libraryControls:ToolBarButton.ButtonContent>
            </libraryControls:ToolBarButton>
        </StackPanel>
    </Grid>
</riaControlsBase:UserControlBase>